//
//  UserCenter.h
//  PalmHospitalTongJi
//
//  Created by leon on 13-11-20.
//  Copyright (c) 2013年 lvxian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CommonData.h"
#import "dataGetUserInfo.h"

@interface UserCenter : NSObject
@property (nonatomic,strong) NSString      *authToken;
@property (nonatomic,strong) NSString      *userNo;
@property (nonatomic,assign) NSInteger      userId;
@property (nonatomic,assign,readonly) BOOL          isLogined;
@property (nonatomic,strong)           dataGetUserInfo      *user;

+ (instancetype)shareCenter;

- (void)logout:(void (^)(BOOL suc, NSString* error))completion;
//
//
- (void)getProfiles:(void (^)(dataGetUserInfo * profile))completiton;
//
- (void)refreshProfiles:(void (^)(dataGetUserInfo * profile))completiton;
//
- (void)clearUserState;

@end
